#ifndef TINX_PSF_H
#define TINX_PSF_H

#include <tinx/types.h>

#define PSF1_MAGIC 0x436

typedef struct psf1_header_t
{
    u16 magic; // 0x436
    u8 mode;
    u8 height;
} _packed psf1_header_t;

enum
{
    PSF1_MODE512 = 0x01,
    PSF1_MODEHASTAB = 0x02,
    PSF1_MODESEQ = 0x04,
};

psf1_header_t *psf1_init(u8 *data);

#endif